
def outbound_1():
  """E1. Outbound call AilAg1. to ExtDn, release AilAg1."""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()

def outbound_2():
  """E2. Outbound call AilAg1. to ExtDn, abnormal release AilAg1."""
  AilAg1.MakeCall(Ext1DN2)
  AilAg1.ReleaseCall()

def outbound_3():
  """E3. Outbound call AilAg1. to ExtDn, release ExtDn"""
  AilAg1.MakeCall(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  Ext1AilAg2.ReleaseCall()


def outbound_6():
  """E6. AilAg1. internal call to AilAg3., AilAg3. two step transfer to ExtDN, release AilAg1."""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

def outbound_7():
  """E7. AilAg1. internal call to AilAg3., AilAg3. tinit to ExtDN,  abn rel AilAg3., rel AilAg1."""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg3.ReleaseCall()
  AilAg1.ReleaseCall()

def outbound_8():
  """E8. AilAg1. internal call to AilAg3., AilAg3. tinit to ExtDN, rel AilAg1."""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg1.ReleaseCall()


def outbound_9():
  """E11. AilAg1. internal call to AilAg3., AilAg3.  blind trans to ExtDN, rel AilAg1."""
  LocalTserver.cfgApp.ChangeOption("Tserver", "enable-retrieve-on-release", "false")
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()
  LocalTserver.cfgApp.ChangeOption("Tserver", "enable-retrieve-on-release", "true")
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

def outbound_11():
  """E13. AilAg1. internal call to ACD3, PosID3 two step transfer to ExtDN, release AilAg1."""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

def outbound_11a():
  """E14. AilAg1. internal call to ACD3, PosID3 tinit transf to ExtDN, abn rel PosID3, rel AilAg1."""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.ReleaseCall()
  AilAg1.ReleaseCall()



def outbound_12():
  """E14. AilAg1. internal call to ACD3, PosID3 tinit transf to ExtDN, abn rel PosID3, rel AilAg1."""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.ReleaseCall()
  AilAg1.ReleaseCall()

def outbound_13():
  """E17. AilAg1. internal call to ACD3, PosID3 tinit trans to ExtDN, rel AilAg1., release ExtDN"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()
  Ext1AilAg2.ReleaseCall()

def outbound_14():
  """E18. AilAg1. internal call to ACD3, PosID3  blind transfer to ExtDN, rel AilAg1."""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateTransfer(Ext1DN2)
  AilAg3.CompleteTransfer()
  AilAg1.ReleaseCall()

#def outbound_16():
#Switch does not support complete conference to outside party
#  """E20. AilAg1. internal call to AilAg3., AilAg3. conference to ExtDN, release AilAg1.,AilAg3."""
#  AilAg1.MakeCall(DN3)
#  AilAg3.AnswerCall()
#  AilAg3.InitiateConference(Ext1DN2)
#  Ext1AilAg2.AnswerCall()
#  AilAg3.CompleteConference()
#  AilAg1.ReleaseCall()
#  AilAg3.ReleaseCall()

def outbound_17():
  """E21. AilAg1. internal call to AilAg3., AilAg3. cinit conf to ExtDN, abn release AilAg3., release AilAg1."""
  AilAg1.MakeCall(DN3)
  AilAg3.AnswerCall()
  AilAg3.InitiateConference(Ext1DN2)
  AilAg3.ReleaseCall()
  AilAg1.ReleaseCall()

#def outbound_18():
#Switch does not support complete conference to outside party
#  """E24.  AilAg1. internal call to ACD3, PosID3 conference to ExtDN, release AilAg1.,PosID3"""
#  AilAg1.MakeCall(ACD3)
#  AilAg3.AnswerCall()
#  AilAg3.InitiateConference(Ext1DN2)
#  Ext1AilAg2.AnswerCall()
#  AilAg3.CompleteConference()
#  AilAg1.ReleaseCall()
#  AilAg3.ReleaseCall()

def outbound_19():
  """E27. AilAg1. internal call to ACD3, PosID3  cinit  to ExtDN, release AilAg1., rel ExtDN"""
  AilAg1.MakeCall(ACD3)
  AilAg3.AnswerCall()
  AilAg3.InitiateConference(Ext1DN2)
  Ext1AilAg2.AnswerCall()
  AilAg1.ReleaseCall()
  Ext1AilAg2.ReleaseCall()
